package com.cjack.frenchexcel.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品信息表
 */
public class GoodsModel implements Serializable {
    private Long id;

    private ConsumerRecordModel consumerRecordModel;
    private Long consumerRecordId;//消费记录表id
    private Long adminUserId;//商品所属员工

    private String name;//商品名称  --暂时没用
    private String number;//商品编号 ，按照规则生成
    private Integer storeCount;//库存数量，现在只有两种，1和0，商品生成的时候库存数量是1，发货之后变成0
    private String customHouse;//海关码  -发票审核通过的时候由管理员下拉选择
    private String status;//商品状态  1-库存 2-已销售等出关单 3-已有出关单
    private Double price;//商品总金额
    private Double purePrice;//单个金额，为上传发票金额的免税金额。 为发票金额 -  TVA
    private Double ratePrice;//税额即为上传发票时的 TVA.
    private Double sellPrice;//销售金额，需要在系统参数中设置一个参数，为百分之多少的利润率。 销售金额 = 单个金额* （1+利润率%）
    private Long sendGoodsRecordId;//商品发货记录id

    private String ids;//商品的id列表，多个逗号分隔，用于传参数

    private Date createTime;
    private Date updateTime = new Date();

    //以下部分为计算得出
    private String jobNumber;//商品所属员工工号


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ConsumerRecordModel getConsumerRecordModel() {
        return consumerRecordModel;
    }

    public void setConsumerRecordModel(ConsumerRecordModel consumerRecordModel) {
        this.consumerRecordModel = consumerRecordModel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCustomHouse() {
        return customHouse;
    }

    public void setCustomHouse(String customHouse) {
        this.customHouse = customHouse;
    }

    public Long getConsumerRecordId() {
        return consumerRecordId;
    }

    public void setConsumerRecordId(Long consumerRecordId) {
        this.consumerRecordId = consumerRecordId;
    }

    public Integer getStoreCount() {
        return storeCount;
    }

    public void setStoreCount(Integer storeCount) {
        this.storeCount = storeCount;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getSendGoodsRecordId() {
        return sendGoodsRecordId;
    }

    public void setSendGoodsRecordId(Long sendGoodsRecordId) {
        this.sendGoodsRecordId = sendGoodsRecordId;
    }

    public Long getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(Long adminUserId) {
        this.adminUserId = adminUserId;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public Double getPurePrice() {
        return purePrice;
    }

    public void setPurePrice(Double purePrice) {
        this.purePrice = purePrice;
    }

    public Double getRatePrice() {
        return ratePrice;
    }

    public void setRatePrice(Double ratePrice) {
        this.ratePrice = ratePrice;
    }

    public Double getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Double sellPrice) {
        this.sellPrice = sellPrice;
    }
}
